package unit9_7;

public class Test {
    public static void main(String[] args) {
        Master master=new Master();
        Cat cat=new Cat();
        Dog dog=new Dog();
        master.feed(cat);//向上转型
        master.feed(cat);
    }
}
